Fix the check for non-existence of the save/restore directories, by using &&
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 26 Oct 2005 15:59:13 +0000 (16:59 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 26 Oct 2005 15:59:13 +0000 (16:59 +0100)
commit6ee89dae792ca89399753492cac801110352f608
tree81d19b9248754fbae2c11a1af7bf77f817b71c96
parent0edd55be1931088d9f8795ec60b3f27cdc2f3a03
Fix the check for non-existence of the save/restore directories, by using &&
rather than -a.  The former shortcuts at the script level, whereas the latter
does not, which means that the backtick-enclosed arguments are evaluated
regardless of the success of preceding tests.

Tidy the aforementioned test into a function of its own.

Add an implementation of usleep for those systems that only have sleep (Debian,
for example).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/init.d/xendomains